    #include<iostream>
    #include<cstdio>
    using namespace std;
    int main(){
        int n;
        int a=0,b=0;
        for(int i=0;i<10;i++){
            cin>>n;
            if(n>0)a++;
            else b++;
        }
        cout<<"positive:"<<a<<endl;
        cout<<"negative:"<<b<<endl;
        return 0;
    }
